package com.manage.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 已判未执行对象 cm_convicted_not_executed
 *
 * @author ruoyi
 * @date 2025-10-05
 */
@Data
@TableName("cm_convicted_not_executed")
public class CmConvictedNotExecuted
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 外部唯一id */
    private String publicId;

    /** 案件id */
    private Long caseId;

    /** 一审诉讼裁决日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date firstTrialJudgmentDate;

    /** 一审诉讼裁决执行期限 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date firstTrialExecutionDeadline;

    /** 二审诉讼裁决日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date secondTrialJudgmentDate;

    /** 二审诉讼裁决执行期限 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date secondTrialExecutionDeadline;

    /**创建时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**更新时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("publicId", getPublicId())
            .append("caseId", getCaseId())
            .append("firstTrialJudgmentDate", getFirstTrialJudgmentDate())
            .append("firstTrialExecutionDeadline", getFirstTrialExecutionDeadline())
            .append("secondTrialJudgmentDate", getSecondTrialJudgmentDate())
            .append("secondTrialExecutionDeadline", getSecondTrialExecutionDeadline())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
